import random

import pytest


# @pytest.fixture(scope="session")
@pytest.fixture(scope="class")
def f():
    print("启动浏览器")  # 前置操作
    # yield "来自fixture的数据"
    # yield random.randint(10, 9999)
    yield []
    print("关闭浏览器")  # 后置操作
